/*  1:   */ package org.jetbrains.generate.tostring.element;
/*  2:   */ 
/*  3:   */ import com.intellij.openapi.util.text.StringUtil;
/*  4:   */ 
/*  5:   */ public class FieldElement
/*  6:   */   extends AbstractElement
/*  7:   */   implements Element
/*  8:   */ {
/*  9:   */   private boolean a;
/* 10:   */   private boolean b;
/* 11:   */   private boolean c;
/* 12:   */   private boolean d;
/* 13:   */   
/* 14:   */   public String getAccessor()
/* 15:   */   {
/* 16:35 */     return this.name;
/* 17:   */   }
/* 18:   */   
/* 19:   */   public boolean isConstant()
/* 20:   */   {
/* 21:42 */     return this.a;
/* 22:   */   }
/* 23:   */   
/* 24:   */   public boolean isModifierTransient()
/* 25:   */   {
/* 26:49 */     return this.c;
/* 27:   */   }
/* 28:   */   
/* 29:   */   public boolean isModifierVolatile()
/* 30:   */   {
/* 31:56 */     return this.d;
/* 32:   */   }
/* 33:   */   
/* 34:   */   public boolean isEnum()
/* 35:   */   {
/* 36:64 */     return this.b;
/* 37:   */   }
/* 38:   */   
/* 39:   */   void setConstant(boolean paramBoolean)
/* 40:   */   {
/* 41:68 */     this.a = paramBoolean;
/* 42:   */   }
/* 43:   */   
/* 44:   */   void setModifierTransient(boolean paramBoolean)
/* 45:   */   {
/* 46:72 */     this.c = paramBoolean;
/* 47:   */   }
/* 48:   */   
/* 49:   */   void setModifierVolatile(boolean paramBoolean)
/* 50:   */   {
/* 51:76 */     this.d = paramBoolean;
/* 52:   */   }
/* 53:   */   
/* 54:   */   public void setEnum(boolean paramBoolean)
/* 55:   */   {
/* 56:80 */     this.b = paramBoolean;
/* 57:   */   }
/* 58:   */   
/* 59:   */   public boolean matchName(String paramString)
/* 60:   */     throws IllegalArgumentException
/* 61:   */   {
/* 62:91 */     if (StringUtil.isEmpty(paramString)) {
/* 63:92 */       throw new IllegalArgumentException("Can't perform regular expression since the given input is empty. Check the Method body velocity code: regexp='" + paramString + "'");
/* 64:   */     }
/* 65:95 */     return this.name.matches(paramString);
/* 66:   */   }
/* 67:   */   
/* 68:   */   public String toString()
/* 69:   */   {
/* 70:99 */     return super.toString() + " ::: FieldElement{" + "isConstant=" + this.a + ", isEnum=" + this.b + ", isModifierTransient=" + this.c + ", isModifierVolatile=" + this.d + "}";
/* 71:   */   }
/* 72:   */ }


/* Location:           E:\idea\
 * Qualified Name:     org.jetbrains.generate.tostring.element.FieldElement
 * JD-Core Version:    0.7.0.1
 */